# coding=utf-8
'''
Created on 2015年9月21日

@author: bailiangjun
'''
from django.db import models


class BaseModel(models.Model):

    create_time = models.DateTimeField(u"创建时间", db_column="ctime", auto_now_add=True)
    create_by = models.CharField(u"创建人(工号)", db_column="cperson", max_length=64, blank=True)
    update_time = models.DateTimeField(u"修改时间", db_column="utime", auto_now_add=True, auto_now=True)
    update_by = models.CharField(u"修改人(工号)", db_column="uperson", max_length=64, blank=True)

    class Meta:
        abstract = True
